package interfaces;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author Daryna_Ragimova
 */
public interface MyStack<E> {
    /**
     * Pushes an item onto the top of this stack.
     * @param e - the item to be pushed onto this stack.
     */
    void push(E e);
    /**
     * Removes the object at the top of this stack and returns that object as the value of this function.
     * @return the object at the top of this stack
     */
    E pop();

}
